package com.zhinan.vo;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @Description: 用户注册VO
 * @Author: ZhiNan
 * @Date: 2023-04-20 14:26
 * @Version: 1.0
 */
@Data
@ToString
public class UserRegVo {

    @NotBlank(message = "用户工号不能为空")
    private String userNum;


    @Pattern(regexp = "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$", message = "密码长度至少为8为且至少包含一个字母或数字")
    private String userPwd;
}
